package ${configuration.javaModelPackage}.entity;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Id;
import org.hibernate.validator.constraints.Length;


/**
 *
 * <p>Title: ${configuration.domainObjectName}</p>
 * <p>Description: </p>
 * 
 * @author ${configuration.author}
 * @date ${.now?string("yyyy-MM")}
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ${configuration.domainObjectName} {
	/***********Example使用***************/
<#list columnList as column>
    //${column.remarks}
    public static final String ${column.javaProperty}_ = "${column.javaProperty}";
</#list>
	/*********************************/

<#list columnList as column>
    //${column.remarks}
    <#if column.actualColumnName =="id">
    @Id
    <#else>

	@ApiModelProperty(value = "${column.remarks}", example = "")
    </#if>
    @Length(max = ${column.length},message = "${column.remarks}不能超过${column.length}个字符")
    private ${column.javaType.baseShortName?cap_first} ${column.javaProperty};

</#list>
}




